home *** CD-ROM | disk | FTP | other *** search
/ PC Play 129 / pc play 129.iso / Demo / man2 / man2.exe / data / scripts / oldunits_neweffects / heavybot2_shot_explosion.lua next >
Encoding:
Text File  |  2007-01-25  |  3.8 KB  |  144 lines

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_HEAVYBOT2SHOT_EXPLOSION)
  2.  
  3. desc.ClassID = ENCLASS_SIMPLEPARTICLESYSTEM
  4. desc.EffectClassType = ENECT_PARTICLESYSTEM
  5.  
  6. desc.ScriptSet = ENSCRIPTSET_UNKNOWN
  7. desc.RelativePosition = ENLOCALPOS_NOTSPECIFIED
  8. local vzbzd1 = D3DXVECTOR3:new(0,0,0)
  9. desc.LocalPosition = vzbzd1
  10. vzbzd1:delete()
  11. desc.isAnimateTexture = false
  12. desc.RenderType = ENRENDERTYPE_GEOMETRY
  13.  
  14. Emitter = desc.PS.PSDescription
  15. Emitter.ParticleTypesNumber = 1
  16. local vzbzd2 = D3DXVECTOR3:new(0,0,0)
  17. Emitter.EmitterPosition = vzbzd2
  18. vzbzd2:delete()
  19. local vzbzd3 = D3DXVECTOR3:new(0,0,0)
  20. Emitter.EmitterDirection = vzbzd3
  21. vzbzd3:delete()
  22. Emitter.EmitterLifeTime = 1
  23.  
  24. PT = Emitter.ParticleTypesParams[1]
  25. PT.IsEmitterLocked = false
  26. PT.DrawOrder = 1
  27. PT.Material = ENMAT_PARTICLE_LIGHT
  28.  
  29.  
  30. PT.TextureName = "environment_effect_explosion_sparkles2.dds"
  31.  
  32. PT.ParticlesPerSecond = 0.1;
  33. PT.InitialNumberOfParticles = 180.0;
  34. PT.BaseLifeTime = 1.5;
  35. PT.BaseLifeTimeVariance = 0.7;
  36. PT.BaseSpeed = 4.0;
  37. PT.BaseSpeedVariance = 0.0;
  38.  
  39. PT.TangentSpeed = 1.0;
  40. PT.TangentSpeedVariance = 0.1;
  41. local vzbzd4 = D3DXVECTOR3:new(1.0,1.0,1.0)
  42. PT.TangentDirection = vzbzd4
  43. vzbzd4:delete()
  44. PT.TangentAngleMin = 0.0;
  45. PT.TangentAngleMax = 6.28;
  46. PT.IsTangentDependOnBase = false;
  47.  
  48. PT.BaseAngle = 1.65;
  49. PT.BaseAngleVariance = 2.0;
  50. PT.BaseAngleSpeed = 0.4;
  51. PT.BaseAngleSpeedVariance = 1.0;
  52. PT.BaseAngleSpeedDirection = 0;
  53. local vzbzd5 = D3DXVECTOR3:new(0.0,1.0,0.0)
  54. PT.BaseDirection = vzbzd5
  55. vzbzd5:delete()
  56. local vzbzd6 = D3DXVECTOR3:new(0.0,0.0,0.0)
  57. PT.BaseDirectionVariance = vzbzd6
  58. vzbzd6:delete()
  59. local vzbzd7 = D3DXVECTOR3:new(0,0,0)
  60. PT.BasePosition = vzbzd7
  61. vzbzd7:delete()
  62. local vzbzd8 = D3DXVECTOR3:new(4.0,4.0,4.0)
  63. PT.BasePositionVariance = vzbzd8
  64. vzbzd8:delete()
  65. PT.BaseSize = 2.0;
  66. PT.BaseSizeVariance = 0.4;
  67.  
  68. -- color over time
  69. PT.ColorOverTimeR[1].TimePercent = 0.0;
  70. PT.ColorOverTimeR[1].Value = 0.2;
  71. PT.ColorOverTimeG[1].TimePercent = 0.0;
  72. PT.ColorOverTimeG[1].Value = 0.6;
  73. PT.ColorOverTimeB[1].TimePercent = 0.0;
  74. PT.ColorOverTimeB[1].Value = 1.0;
  75.  
  76. PT.ColorOverTimeR[2].TimePercent = 1.0;
  77. PT.ColorOverTimeR[2].Value = 1.0;
  78. PT.ColorOverTimeG[2].TimePercent = 1.0;
  79. PT.ColorOverTimeG[2].Value = 0.2;
  80. PT.ColorOverTimeB[2].TimePercent = 1.0;
  81. PT.ColorOverTimeB[2].Value = 0.0;
  82.  
  83. -- transparency over time
  84. PT.TransparencyOverTime[1].TimePercent = 0.0;
  85. PT.TransparencyOverTime[1].Value = 1.0;
  86.  
  87. PT.TransparencyOverTime[2].TimePercent = 0.4;
  88. PT.TransparencyOverTime[2].Value = 1.0;
  89.  
  90. PT.TransparencyOverTime[3].TimePercent = 1.0;
  91. PT.TransparencyOverTime[3].Value = 0.0;
  92.  
  93.  
  94. -- size over time
  95. PT.SizeOverTime[1].TimePercent = 0.0;
  96. PT.SizeOverTime[1].Value = 1.0;
  97.  
  98. PT.SizeOverTime[2].TimePercent = 0.07;
  99. PT.SizeOverTime[2].Value = 2.0;
  100.  
  101. PT.SizeOverTime[3].TimePercent = 1.0;
  102. PT.SizeOverTime[3].Value = 4.0;
  103.  
  104.  
  105. -- Speed over time
  106. PT.SpeedOverTime[1].TimePercent = 0.0;
  107. PT.SpeedOverTime[1].Value = 24.0;
  108.  
  109. PT.SpeedOverTime[2].TimePercent = 0.1;
  110. PT.SpeedOverTime[2].Value = 0.0;
  111.  
  112. PT.SpeedOverTime[3].TimePercent = 1.0;
  113. PT.SpeedOverTime[3].Value = 0.0;
  114.  
  115. -- Tangent Speed over time
  116. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  117. PT.TangentSpeedOverTime[1].Value = 20.0;
  118.  
  119. PT.TangentSpeedOverTime[2].TimePercent = 0.1;
  120. PT.TangentSpeedOverTime[2].Value = 5.0;
  121.  
  122. PT.TangentSpeedOverTime[3].TimePercent = 1.0;
  123. PT.TangentSpeedOverTime[3].Value = 0.0;
  124.  
  125.  
  126. -- GravityAcceleration over time
  127. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  128. PT.GravityAccelerationOverTime[1].Value = -10.0;
  129.  
  130. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  131. PT.GravityAccelerationOverTime[2].Value = -10.0;
  132.  
  133. -- AngleSpeed over time
  134. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  135. PT.AngleSpeedOverTime[1].Value = 0.0;
  136.  
  137. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  138. PT.AngleSpeedOverTime[2].Value = 0.0;
  139.  
  140.  
  141. --
  142. -- end particle system description
  143. --
  144.